{
    const arr: number[] = [1,2,3,4,5,6,7,8,9]
arr.push(2);

const arr2: (number | string)[] =[1,2,'4']




//使用泛型定义数组类型
const arr4: Array<number> =[1,2,3,4]
}